package player.ui;

import java.awt.Component;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.LayoutManager;

public class GlassLayout implements LayoutManager{

	public void addLayoutComponent(String name, Component comp) {
		
	}

	public void layoutContainer(Container cn) {
		int count = cn.getComponentCount();
		  for (int i = 0 ; i < count ; i++) {
		    	Component m = cn.getComponent(i);
		    	m.setBounds(0, 0, cn.getWidth(), cn.getHeight());
		  }
	}

	public Dimension minimumLayoutSize(Container parent) {
		return new Dimension(0,0);
	}

	public Dimension preferredLayoutSize(Container parent) {
		return new Dimension(0,0);
	}

	public void removeLayoutComponent(Component comp) {
		
	}

}
